Data can be maintained in one of two ways: the traditional file approach—which has no mechanism for tagging, retrieving, and manipulating data—and the database approach, which does have this mechanism. To appreciate the benefits of the database approach, you must keep in mind the inconvenience involved in accessing and manipulating data in the traditional file approach: program-data dependency, high data redundancy, and low data integrity.
- In the traditional file approach, the programmer must know how data is stored to use it. Perhaps most importantly, the very fact that manipulation of the data requires a programmer is probably the greatest disadvantage of the file approach. Some business data is still processed this way. New data resources rarely are built this way, but the existing ones must be maintained with this challenge in mind. Other challenges with traditional file storage are high data redundancy and low data integrity, because in older file systems files were built, and are still maintained, for the use of specific organizational units.
- In the database approach, data pieces are organized about entities. An entity is any object about which an organization chooses to collect data. Entities can be types of people, such as employees, students, or members of fan clubs; events, such as sales transactions, sports events, or theatre shows; or inanimate objects, such as inventoried or for-sale products, buildings, or minerals. The smallest piece of data is a character. Multiple characters make up a field. A field is one piece of information about an entity, such as the last name or first name of a student, or the student’s street address. The fields related to the same entity make up a record. A collection of related records, such as all the records of a college’s students, is called a file. Often, several related files must be kept together. A collection of such files is referred to as a database. However, the features of a database can be present even when a database consists of a single file.